@import '@/app/styles/variables';

.modal_container {
    margin-bottom: 136px;
}

.modal {
    padding: 0px;
    width: 100%;
    position: relative;
    width: 704px;
    height: min-content;
    flex-direction: column;
}

.general_container {
    height: max-content;
}

.container {
    display: flex;
    flex-direction: column;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    width: 100%;
    padding: 56px 56px 48px 56px;
    border-radius: 32px;
    background: #fff;
    z-index: 2;
    top: 136px;
    position: relative;
}

.card_image {
    overflow: hidden;
    border-radius: 32px;
    background: #fefefe;
    position: absolute;
    display: flex;
    width: 100%;
    align-self: center;
    height: 400px;
    z-index: 1;
    top: 0;

    img {
        object-fit: cover;
    }
}


.buy_block {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 16px;

    .btn {
        font-size: 20px;
        line-height: 26px;
    }

    .agree {
        color: #ABABAB;
    }
}

@include media(sm) {
    .modal_container {
        margin-bottom: 0px !important;
        height: 100vh !important;
    }

    .modal {
        width: 100vw !important;
        height: 100vh !important;
    }

    .container {
        width: 100vw;
        padding: 0px !important;
        border-radius: 32px;
        background: #fff;
        z-index: 2;
        align-items: flex-start;
        text-align: start;
        gap: 16px;
        position: relative;
        top: 56px;
        padding: 16px !important;
        margin-bottom: calc(100% - 20vh);
    }

    .funcs {
        margin-bottom: 8px;
    }

    .card_image {
        overflow: hidden;
        border-radius: 32px;
        background: #fefefe;
        position: absolute;
        display: flex;
        width: 100vw;
        align-self: center;
        height: 250px;
        z-index: 1;
        border-radius: 0px;
        top: 0;

        img {
            object-fit: cover;
        }
    }

    .title {
        font-size: 32px !important;
    }

    .buy_block {
        position: fixed;
        z-index: 120;
        background: linear-gradient(0deg, #FFFFFF 38.94%, rgba(255, 255, 255, 0) 100%);
        height: 104px;

        gap: 8px;
        bottom: 0px;
        display: flex;
        flex-direction: column;
        justify-content: center;

        .btn {
            width: calc(100vw - 32px);
            font-size: 16px;
            line-height: 22px;
        }

        .agree {
            font-size: 14px;
            text-align: center;
            font-weight: 400;
            line-height: 16px;
            color: rgba(171, 171, 171, 1);
        }
    }
}